 {
        
        var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
            return typeof e;
        } : function (e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
        };
        tywx.GameFeature = {
            init: function () {
                tywx.AdManager.showTargetAdByIndex = this.showTargetAdByIndex.bind(tywx.AdManager),
                    tywx.AdManager.getUserCityInfo = this.getUserCityInfo.bind(tywx.AdManager), tywx.AdManager.adNodeObj.createAdNodeByIndex = this.createAdNodeByIndex,
                    tywx.AdManager.adNodeObj.genRandomFirstAdInfo = this.genRandomFirstAdInfo, tywx.AdManager.adNodeObj.resetBtnIcon = this.resetBtnIcon,
                    tywx.AdManager.requestLocalIPInfo = this.requestLocalIPInfo.bind(tywx.AdManager),
                    tywx.AdManager.init(), this.addEventType(), tywx.PropagateInterface._replaceKeyContent = this._replaceKeyContent.bind(tywx.PropagateInterface),
                    tywx.PropagateInterface._myShuffleByWeights = this._myShuffleByWeights.bind(tywx.PropagateInterface),
                    tywx.PropagateInterface.getWeightShareConfigInfoByTypeWithShare = this.getWeightShareConfigInfoByTypeWithShare.bind(tywx.PropagateInterface),
                    tywx.ShareInterface.shareWithCaptureInfo = this.shareWithCaptureInfo.bind(tywx.ShareInterface),
                    tywx.TuyooSDK.wechatLogin = this.wechatLogin.bind(tywx.TuyooSDK), tywx.TuyooSDK.loginTuyooWithCode = this.loginTuyooWithCode.bind(tywx.TuyooSDK),
                    tywx.TuyooSDK.getSystemInfo = this.getSystemInfo.bind(tywx.TuyooSDK), tywx.TuyooSDK.createOrder = this.createOrder.bind(tywx.TuyooSDK),
                    tywx.TuyooSDK.rechargeOrder = this.rechargeOrder.bind(tywx.TuyooSDK), tywx.WechatInterfaceInit = this.WechatInterfaceInit;
            },
            shareWithCaptureInfo: function (e, t, n, o, i, a, r, s) {
                try {
                    if (tywx.IsWechatPlatform()) if (tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserShare, [n, 1, o]),
                        s) {
                        var l = cc.director.getWinSize().width / tywx.SystemInfo.wxSystemInfo.screenWidth, c = s.width,
                            d = s.height;
                        canvas.toTempFilePath({
                            x: 0,
                            y: 0,
                            width: c / l * 2,
                            height: d / l * 2,
                            destWidth: 500 / l * 2,
                            destHeight: 400 / l * 2,
                            fileType: "jpg",
                            success: function (t) {
                                console.log("shareWithCaptureInfo share: toTempFilePath success");
                                var s = t.tempFilePath;
                                console.log("shareWithCaptureInfo share: toTempFilePath success imagUrl = ", s),
                                    wx.shareAppMessage({
                                        title: e,
                                        imageUrl: s,
                                        query: "inviteCode=" + tywx.UserInfo.userId + "&sourceCode=" + n + "&inviteName=" + tywx.UserInfo.userName + "&imageType=" + o + "&extraInfo=" + (r || ""),
                                        success: function (e) {
                                            console.log("shareWithCaptureInfo share: tuyoo shareAppMessage success, params:" + JSON.stringify(e)),
                                            i && i(e);
                                            tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserShare, [n, 2, o, !0]);
                                        },
                                        fail: function (e) {
                                            console.log("shareWithCaptureInfo share: tuyoo shareAppMessage fail, params:" + JSON.stringify(e)),
                                            a && a(e);
                                        }
                                    });
                            },
                            fail: function (e) {
                                console.log("dahu share: toTempFilePath fail, params:" + JSON.stringify(e)), a && a(e);
                            }
                        });
                    } else wx.shareAppMessage({
                        title: e,
                        imageUrl: t,
                        query: "inviteCode=" + tywx.UserInfo.userId + "&sourceCode=" + n + "&inviteName=" + tywx.UserInfo.userName + "&imageType=" + o + "&extraInfo=" + (r || ""),
                        success: function (e) {
                            i && i(e), tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserShare, [n, 2, o]);
                        },
                        fail: function (e) {
                            a && a(e);
                        },
                        complete: function () {
                        }
                    });
                } catch (e) {
                    tywx.LOGE("error:", "tywx.ShareInterface.share——" + JSON.stringify(e));
                }
            },
            getWeightShareConfigInfoByTypeWithShare: function (e, t, n, i, a) {
                "object" != (void 0 === e ? "undefined" : o(e)) && (e = {});
                var r = this, s = new Date().getTime();
                e.act = "api.getShareConfig", e.time = s, e.game_mark = tywx.SystemInfo.cloudId + "-" + tywx.SystemInfo.gameId;
                var l = this.getConfigSignStr(e), c = [];
                for (var d in e) c.push(d + "=" + e[d]);
                c.push("sign=" + l);
                var u = tywx.SystemInfo.shareManagerUrl + "?" + c.join("&");
                n = void 0 == n ? function () {
                    console.log("分享成功");
                } : n;
                tywx.HttpUtil.httpGet({
                    url: u
                }, function (o) {
                    for (var s in o.retmsg) tywx.PropagateInterface.ShareConfig[s] = o.retmsg[s];
                    var l = r._myShuffleByWeights(o.retmsg);
                    if (console.log("zzw log2:", l), e.share_type && l && l[e.share_type] && n && "function" == typeof n) {
                        var c = l[e.share_type];
                        c.shareContent = r._replaceKeyContent(c.shareContent), a ? tywx.ShareInterface.shareWithCaptureInfo(c.shareContent, c.sharePicUrl, c.sharePointId, c.shareSchemeId, n, i, t, a) : tywx.ShareInterface.share(c.shareContent, c.sharePicUrl, c.sharePointId, c.shareSchemeId, n, i, t);
                    }
                }, function (e) {
                    i && "function" == typeof i && i(e);
                });
            },
            _replaceKeyContent: function (e) {
                var t = "";
                return "" != (t = Global.tableModel.getCreateTableNo() + "") && (e = e.replace("@key1@", t)),
                "" != (t = Global.utils.getFixString(Global.userProfile.getUserName(), 5)) && (e = e.replace("@key2@", t)),
                    e;
            },
            _myShuffleByWeights: function (e) {
                if (e) {
                    var t = {};
                    for (var n in e) if ("shareExt" != n) {
                        var o = e[n];
                        if (0 == o.length) t[n] = {}; else if (1 == o.length) t[n] = o[0]; else for (var i = o.reduce(function (e, t) {
                            return e + t.weight;
                        }, 0), a = Math.random() * i, r = 0; r < o.length; r++) if ((a -= o[r].weight) <= 0) {
                            t[n] = o[r];
                            break;
                        }
                    }
                    return t;
                }
            },
            addEventType: function () {
                var e = {
                    SCENE_ON_LOAD_COMPLETED: "SCENE_ON_LOAD_COMPLETED",
                    MSG_SHOW_ADCROSSLIST_POPUP: "MSG_SHOW_ADCROSSLIST_POPUP"
                };
                for (var t in e) tywx.EventType[t] = e[t];
            },
            showTargetAdByIndex: function (e, t, n) {
                clearInterval(tywx.AdManager.freshAdIconByTime);
                var o = new tywx.AdManager.adNodeClass();
                o.adInfoList = JSON.parse(JSON.stringify(tywx.AdManager.allAdInfoList)), o.adType = 1,
                    o.adTag = t || "", o.createAdNodeByIndex(e, n), tywx.AdManager.adNodeList.push(o);
            },
            createAdNodeByIndex: function (e, t) {
                if (this._allowChangeIcon = !1, this.genRandomFirstAdInfo(t), this.currentAdInfo) if (this.adIconBtn) this.adIconBtn.active = !0; else {
                    var n = this;
                    cc.loader.loadRes("prefabs/adNode", function (t, o) {
                        var i = cc.instantiate(o), a = e || {
                            x: 0,
                            y: 0
                        };
                        (i.position = cc.p(a.x, a.y), i.scale = Global.config.nodeAdCrossScale, n.adIconBtn = i,
                            cc.game.addPersistRootNode(i), n.adIconNode(), n.adIconBtn && cc.isValid(n.adIconBtn)) ? n.adIconBtn.getChildByName("adButton").on("click", function () {
                            n.onClickAdIconBtn();
                        }) : console.error("cc.isValid(that.adIconBtn)");
                    });
                }
            },
            genRandomFirstAdInfo: function (e) {
                var t = this;
                if (0 != this.adInfoList.length) if (null != e && this.adInfoList[e]) t.currentAdInfo = this.adInfoList[e]; else {
                    var n = [{
                        weight: 0,
                        id: "000"
                    }];
                    for (var o in this.adInfoList) {
                        var i = {
                            weight: parseInt(t.adInfoList[o].icon_weight),
                            id: t.adInfoList[o].icon_id
                        };
                        n.push(i);
                    }
                    n.sort(function (e, t) {
                        return e.weight > t.weight;
                    });
                    var a = 0;
                    n.forEach(function (e) {
                        a += e.weight;
                    });
                    var r = parseInt(1e4 * Math.random()) % (a + 1), s = 0, l = 0;
                    for (o = 0; o < n.length - 1; o++) if ((s += n[o].weight) < r && s + n[o + 1].weight >= r) {
                        l = o + 1;
                        break;
                    }
                    var c = n[l];
                    this.adInfoList.forEach(function (e) {
                        e.icon_id == c.id && (t.currentAdInfo = e);
                    });
                }
            },
            resetBtnIcon: function () {
                this._allowChangeIcon && this.adIconBtn && (this.genRandomFirstAdInfo(), this.adIconNode());
            },
            requestLocalIPInfo: function () {
                try {
                    if (!tywx.IsWechatPlatform()) return;
                    var e = this;
                    wx.request({
                        url: "https://iploc.ywdier.com/api/iploc5/search/city",
                        success: function (t) {
                            200 == t.statusCode && (t.data && t.data.loc && (e.ipLocInfo = t.data), e.processRawConfigInfo()),
                                console.error("requestLocalIPInfo ==>" + JSON.stringify(t));
                        },
                        fail: function (e) {
                        }
                    });
                } catch (e) {
                    tywx.LOGE("error:", "tywx.AdManager.requestLocalIPInfo" + JSON.stringify(e));
                }
            },
            getUserCityInfo: function () {
                return this.ipLocInfo && this.ipLocInfo.loc && this.ipLocInfo.loc[2] ? this.ipLocInfo.loc[2] : "unknown";
            },
            wechatLogin: function () {
                try {
                    if (!tywx.IsWechatPlatform()) return;
                    tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeWxLoginStart, []),
                        wx.login({
                            success: function (e) {
                                if (tywx.LOGD(null, "wx login success, params:" + JSON.stringify(e)), tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeWxLoginSuccess, [e.code]),
                                    e.code) {
                                    var t = e.code;
                                    tywx.TuyooSDK.loginTuyooWithCode(t, {}), tywx.NotificationCenter.trigger(tywx.EventType.WEIXIN_LOGIN_SUCCESS);
                                }
                            },
                            fail: function (e) {
                                tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeWxLoginFailed, []),
                                    tywx.LOGD(null, "wx login fail, params:" + JSON.stringify(e)), tywx.NotificationCenter.trigger(tywx.EventType.WEIXIN_LOGIN_FAIL);
                            },
                            complete: function (e) {
                            }
                        });
                } catch (e) {
                    tywx.LOGE("error:", "tywx.TuyooSDK.wechatLogin——" + JSON.stringify(e));
                }
            },
            loginTuyooWithCode: function (e, t) {
                try {
                    if (!tywx.IsWechatPlatform()) return;
                    wx.showShareMenu({
                        withShareTicket: !0
                    });
                    var n = t.gender || 0, o = tywx.Util.getLocalUUID();
                    tywx.LOGD("local_uuid:", o);
                    var i = tywx.SystemInfo.loginUrl, a = {
                        appId: tywx.SystemInfo.appId,
                        wxAppId: tywx.SystemInfo.wxAppId,
                        clientId: tywx.SystemInfo.clientId,
                        snsId: "wxapp:" + e,
                        uuid: o,
                        gender: n,
                        scene_id: tywx.UserInfo.scene_id || "",
                        scene_param: tywx.UserInfo.scene_param || "",
                        invite_id: tywx.UserInfo.invite_id || 0
                    };
                    t && t.nickName && (a.nickName = t.nickName), t && t.avatarUrl && (a.avatarUrl = t.avatarUrl),
                        tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeLoginSDKStart, [e, o, t.nickName]),
                        wx.request({
                            url: i + "open/v6/user/LoginBySnsIdNoVerify",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: a,
                            method: "POST",
                            success: function (n) {
                                tywx.LOGD(null, "tuyoo login success, params:" + JSON.stringify(n));
                                var i = n.data;
                                if (tywx.TuyooSDK.timeDelay = 0, i.error && 1 == i.error.code || !i.result || !i.result.userId) {
                                    console.log("tuyoo login fail..."), tywx.TuyooSDK.timeDelay = tywx.TuyooSDK.timeDelay + 200;
                                    var a = tywx.TuyooSDK.timeDelay;
                                    return a > 1200 && (tywx.TuyooSDK.timeDelay = 0), void setTimeout(tywx.TuyooSDK.login, a);
                                }
                                var r = i.result;
                                tywx.UserInfo.userId = r.userId, tywx.UserInfo.userName = r.userName, tywx.UserInfo.userPic = r.purl,
                                    tywx.UserInfo.authorCode = r.authorCode, tywx.UserInfo.wxgame_session_key = r.wxgame_session_key,
                                    tywx.UserInfo.isCreate = r.isCreate, tywx.LOGD(null, "userId:" + tywx.UserInfo.userId + " userName:" + tywx.UserInfo.userName + " userPic:" + tywx.UserInfo.userPic),
                                    tywx.UserInfo.userId && tywx.UserInfo.userName ? tywx.LOGE("TUYOO_SDK_LOGIN_SUCCESS", JSON.stringify(n)) : tywx.LOGE("TUYOO_SDK_LOGIN_FAIL", JSON.stringify(n));
                                var s = r.token;
                                tywx.LOGD(null, "token:" + s), wx.setStorage({
                                    key: tywx.TuyooSDK.SESSION_KEY,
                                    data: s
                                }), tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeLoginSDKSuccess, [e, o, t.nickName, r.userId]),
                                tywx.showScene && tywx.showQuery && tywx.showQuery.sourceCode && tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserFrom, [tywx.showScene, tywx.showQuery.inviteCode, tywx.showQuery.sourceCode, tywx.showQuery.imageType, "GameStart"]),
                                    tywx.TuyooSDK.initWebSocketUrl(r), tywx.NotificationCenter.trigger(tywx.EventType.SDK_LOGIN_SUCCESS, i),
                                    tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventType_CREATE_GAME_DATA, [e, o, t.nickName, r.userId]);
                            },
                            fail: function (n) {
                                tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeLoginSDKFailed, [e, o, t.nickName]),
                                    tywx.LOGD(null, "tuyoo login fail, params:" + JSON.stringify(n)), tywx.LOGE("TUYOO_SDK_LOGIN_FAIL", JSON.stringify(n)),
                                    tywx.NotificationCenter.trigger(tywx.EventType.SDK_LOGIN_FAIL);
                            },
                            complete: function (e) {
                            }
                        });
                } catch (e) {
                    tywx.LOGE("error:", "tywx.TuyooSDK.loginTuyooWithCode——" + JSON.stringify(e));
                }
            },
            getSystemInfo: function () {
                try {
                    if (!tywx.IsWechatPlatform()) return;
                    wx.getSystemInfo({
                        success: function (e) {
                            var t = e.model, n = t.indexOf("iPhone") >= 0, o = e.windowHeight, i = 0;
                            i = n ? t.indexOf("iPhone X") >= 0 ? 2 : 736 == o ? 4 : 1 : 3, tywx.UserInfo.isiPhone = n,
                                tywx.UserInfo.systemType = i, tywx.UserInfo.wechatType = e.version, tywx.UserInfo.model = e.model,
                                tywx.UserInfo.system = e.system, tywx.UserInfo.sdkVersion = e.SDKVersion, tywx.SystemInfo.wxSystemInfo = e,
                                console.error("基础库版本为:" + tywx.UserInfo.sdkVersion), tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeSubmitVersionInfo, [e.version, e.SDKVersion, e.platform, e.system]);
                        },
                        fail: function () {
                        },
                        complete: function () {
                        }
                    });
                } catch (e) {
                    tywx.LOGE("error:", "tywx.TuyooSDK.getSystemInfo——" + JSON.stringify(e));
                }
            },
            createOrder: function (e, t, n, o, i, a, r, s) {
                var l = {};
                l.prodId = e, l.prodPrice = t, l.chargeType = "wxapp.iap", l.gameId = tywx.SystemInfo.gameId,
                    l.prodName = n, l.prodCount = o, l.appInfo = a || {}, l.extraProdId = i || "", tywx.TuyooSDK.rechargeOrder(l, r, s);
            },
            rechargeOrder: function (e, t, n) {
                try {
                    if (!tywx.IsWechatPlatform()) return;
                    var o = tywx.Util.getLocalUUID(), i = tywx.SystemInfo.loginUrl,
                        a = "hall51" == tywx.SystemInfo.hall_version ? i + "open/v5/pay/order" : i + "open/v4/pay/order";
                    console.error("rechargeOrder reqUrl:", a), wx.request({
                        url: a,
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            userId: tywx.UserInfo.userId,
                            appId: tywx.SystemInfo.appId,
                            wxAppId: tywx.SystemInfo.wxAppId,
                            clientId: tywx.SystemInfo.clientId,
                            imei: "null",
                            uuid: o,
                            prodId: e.prodId,
                            prodName: e.prodName,
                            prodCount: e.prodCount || 1,
                            prodPrice: e.prodPrice,
                            chargeType: e.chargeType,
                            gameId: e.gameId,
                            appInfo: e.appInfo,
                            mustcharge: e.mustcharge || 1,
                            prodOrderId: e.extraProdId
                        },
                        method: "POST",
                        success: function (e) {
                            tywx.LOGE(null, "tuyoo rechargeOrder success, params:" + JSON.stringify(e));
                            var o = e.data.result;
                            if (0 == o.code) {
                                var i = o.chargeInfo, a = i.chargeData, r = a.notifyUrl, s = a.platformOrderId;
                                tywx.LOGE(null, "tuyoo rechargeOrder success 创建订单成功, chargeData.mustcharge =" + a.mustcharge),
                                    a && 1 == a.mustcharge ? wx.requestMidasPayment({
                                        mode: a.mode,
                                        env: a.env,
                                        offerId: a.offerId,
                                        buyQuantity: 10 * i.chargeTotal,
                                        platform: a.platform,
                                        currencyType: "CNY",
                                        zoneId: a.zoneId,
                                        success: function (e) {
                                            tywx.TuyooSDK.orderCallFunc(r, s, i.chargeCoin), t && t();
                                        },
                                        fail: function (e) {
                                            tywx.LOGE(null, "米大师支付 fail params = " + JSON.stringify(e)), e.errCode && 1 == e.errCode && tywx.TuyooSDK.cancelOrder(s),
                                            n && n();
                                        }
                                    }) : a && 0 == a.mustcharge && tywx.TuyooSDK.orderCallFunc(r, s, i.chargeCoin);
                            } else 1 == o.code ? Global.utils.showNodeCommon(o.info, 3) : 2 == o.code ? Global.utils.showNodeCommon(o.info, 3) : 3 == o.code && Global.utils.showNodeCommon(o.info, 3);
                        },
                        fail: function (e) {
                            n && n();
                        },
                        complete: function (e) {
                        }
                    });
                } catch (e) {
                    tywx.LOGE("error:", "tywx.TuyooSDK.rechargeOrder——" + JSON.stringify(e));
                }
            },
            WechatInterfaceInit: function () {
                try {
                    if (tywx.IsWechatPlatform()) {
                        wx.onShow(function (e) {
                            tywx.LOGE("", "+++++++++++++++++onShow+++++++++++++++++" + JSON.stringify(e));
                            var t = e.scene, n = e.query, o = "";
                            tywx.showScene = t, tywx.showQuery = n, tywx.UserInfo.scene_id = t, tywx.UserInfo.scene_param = n.from || "",
                                tywx.UserInfo.invite_id = n.inviteCode || 0, tywx.StateInfo.isOnForeground = !0,
                                tywx.NotificationCenter.trigger(tywx.EventType.GAME_SHOW, e);
                            var i = tywx.Util.checkLocalUUID() ? 1 : 0;
                            if (n && n.gdt_vid && n.weixinadinfo) {
                                var a = "gdt." + n.weixinadinfo;
                                tywx.UserInfo.scene_param = a, tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserFrom, [t, a, i]);
                            } else n && n.sourceCode ? tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserFrom, [t, n.inviteCode, n.sourceCode, n.imageType, "CardActive", i]) : tywx.Util.isSceneQrCode(t) ? (n.hasOwnProperty("scene") ? o = n.scene : e.hasOwnProperty("path") && (o = e.path),
                                o.replace(".html", ""), o = decodeURIComponent(o), tywx.UserInfo.scene_param = o,
                                tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserFrom, [t, o, i])) : tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeUserFrom, [t, n.from, i]);
                            tywx.GameFeature._setOnShowAction(e), tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeOnShowTimeStampSubmit, []),
                            Global.isLogined || (console.log("onshow goto login"), tywx.TuyooSDK.login()), tywx.SystemInfo.openLocalRecord && setTimeout(tywx.TuyooSDK.processLocalRecord, 2e3),
                            tywx.AdManager && tywx.AdManager.onForeGround && tywx.AdManager.onForeGround();
                        }), wx.onHide(function () {
                            tywx.LOGE("", "+++++++++++++++++onHide+++++++++++++++++"), tywx.BiLog.clickStat(tywx.clickStatEventType.clickStatEventTypeOnHideTimeStampSubmit, []),
                                tywx.UserInfo.scene_id = 0, tywx.StateInfo.isOnForeground = !1, tywx.NotificationCenter.trigger(tywx.EventType.GAME_HIDE),
                            tywx.SystemInfo.openLocalRecord && tywx.TuyooSDK.writeBackLocolRecord(), tywx.GameFeature._setOnHideAction();
                        });
                        var e = function (e) {
                            e.hasOwnProperty("isConnected") ? tywx.StateInfo.networkConnected = e.isConnected : e.hasOwnProperty("errMsg") ? tywx.StateInfo.networkConnected = "getNetworkType:ok" == e.errMsg : tywx.StateInfo.networkConnected = "none" != e.networkType,
                                tywx.StateInfo.networkType = e.networkType;
                        };
                        wx.getNetworkType({
                            success: e
                        }), wx.onNetworkStatusChange(e), wx.onError(function (e) {
                            var t = new Date(),
                                n = "userId:" + tywx.UserInfo.userId + "time:" + t.toDateString() + " " + t.toTimeString() + ";" + e.message;
                            tywx.BiLog.uploadLogTimely(n);
                        });
                    }
                } catch (e) {
                    tywx.LOGE("error:", "tywx.WechatInterfaceInit——" + JSON.stringify(e));
                }
            },
            _setOnShowAction: function (e) {
                if (console.log("wx.onShow result:", JSON.stringify(e)), Global._isInBackground) {
                    var t = tywx.GameFeature.onShowCallback;
                    Global._isInBackground = !1, Global.notificationCenter && Global.notificationCenter.start(),
                        Global.myLaunchOption = e;
                    var n = e.shareTicket;
                    n && (Global.myLaunchOption.shareTicket = n);
                    var o = e.query;
                    if (Global.query = o, o.extraInfo && "string" == typeof o.extraInfo) try {
                        o.extraInfo = JSON.parse(o.extraInfo), console.error("Global.query onShow:", o);
                    } catch (e) {
                        console.error("exception:", e, o.extraInfo);
                    }
                    Global.netWork && Global.netWork.isConneted() && Global.notificationCenter.emit(Global.eventName.MSG_UPDATE_QUERY),
                    t && t();
                }
            },
            _setOnHideAction: function () {
                if (console.log("wx.onHide"), !Global._isInBackground) {
                    var e = tywx.GameFeature.onHideCallback;
                    Global._isInBackground = !0, Global.notificationCenter && Global.notificationCenter.stop(),
                    e && e();
                }
            },
            onShowCallback: function () {
                console.log("onShowCallback"), Global.notificationCenter.emit(Global.eventName.GAME_RECONNECT);
            },
            onHideCallback: function () {
                console.log("onHideCallback"), Global.notificationCenter.emit(Global.eventName.GAME_ENTER_BACKGROUND);
            }
        }
    }